/* Controller */

#import <Cocoa/Cocoa.h>
#import <CoreFoundation/CFURL.h>

@interface Controller : NSObject
{
    IBOutlet id siteNameField;
    IBOutlet id siteUrlField;
    IBOutlet id siteNotesField;
	
    IBOutlet id ftpUrlField;
    IBOutlet id ftpDirectoryField;
    IBOutlet id ftpUsernameField;
    IBOutlet id ftpPasswordField;
	
    IBOutlet id dbHostField;
    IBOutlet id dbNameField;
    IBOutlet id dbUsernameField;
    IBOutlet id dbPasswordField;
	
    IBOutlet id hostCompanyField;
    IBOutlet id hostUrlField;
    IBOutlet id hostUsernameField;
    IBOutlet id hostPasswordField;
	
    IBOutlet id dnCompanyField;
    IBOutlet id dnUrlField;
    IBOutlet id dnUsernameField;
    IBOutlet id dnPasswordField;
	
    IBOutlet id contentView;
    IBOutlet id searchView;
    IBOutlet id serverArray;
    IBOutlet id theWindow;
    IBOutlet id drawer;
	
    NSMutableDictionary *toolbarItems; //The dictionary that holds all our "master" copies of the NSToolbarItems
}

-(IBAction) addServer:(id)sender;
-(IBAction) deleteServer:(id)sender;
-(IBAction) toggleDrawer:(id)sender;
-(IBAction) goToSiteUrl:(id)sender;
-(IBAction) goToDnUrl:(id)sender;
-(IBAction) goToFtpUrl:(id)sender;
-(IBAction) goToHostUrl:(id)sender;
-(IBAction) sendMail:(id)sender;

//Required NSToolbar delegate methods
- (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag;    
- (NSArray *)toolbarDefaultItemIdentifiers:(NSToolbar*)toolbar;
- (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar*)toolbar;

@end
